package com.liyanxi.shopcardbyspringcloud.pojo.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.Version;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
/*支持链式写法*/
@Accessors(chain = true)
public class GoodPO implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String goodId;

    private Double goodPrice;

    private String goodName;

    private LocalDateTime creatTime;

    private LocalDateTime updateTime;

    @Version
    private Integer version;

    private int status = 1;

    private String db_source;


}
